<? require_once("includes/header.php") ?>
<link href="css/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css" />
<div id="content_sec">

    <div class="col2">

        <div class="quicklinks">
            <h3 class="righthead colr">Photo Gallery</h3>

            <br />
            <ul>
                <li>
                    <a href="gallery.php?pg=1">Jyothirlingam - Hindu Fair </a>
                </li>
            </ul>
             <ul>
                <li>
                    <a href="gallery.php?pg=2">ONGC Workshop</a>
                </li>
            </ul>
             <ul>
                <li>
                    <a href="gallery.php?pg=3">SPR Campus</a>
                </li>
            </ul>
             <ul>
                <li>
                    <a href="gallery.php?pg=4">SVC Campus</a>
                </li>
            </ul>
        </div>

    </div>

    <div class="col1">
        <div class="galleryhome">

            <h1 class="heading brown">Photo Gallery</h1>

            <ul class="gall_list">
		<?
		$galleryId=(int)$_GET["pg"]==0?1:$_GET["pg"];
		?>
                <?$files=getDirectoryList("data/pg/".$galleryId)  ; ?>
                <?foreach($files as $filename){?>
                    <? $imgPath="data/pg/".$galleryId."/".$filename;
                    	$imgtPath="data/pg/".$galleryId."/".$filename;
                    ?>
                <li>
                    <a href="<?=$imgPath?>" title="">
                    	<div class="photo">
                        <img src="<?=$imgtPath?>"  height="72" alt="" />
                        </div>
                    </a>

                </li>

                <? } ?>

            </ul>
        </div>
    </div>
    <div class="col2"></div>
</div>
<style>
.gall_list .photo{
width:72px;
height:72px;
overflow:hidden;
}
</style>
<? require_once("includes/footer.php") ?>